package com.itic.web.question.studyrecord.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.itic.appbase.framework.common.controller.BaseController;
import com.itic.appbase.framework.plugins.mybatis.Page;
import com.itic.web.qo.TokenData;
import com.itic.web.question.studyrecord.service.AppRecordService;
import com.itic.web.ro.ResResult;



@Controller
@RequestMapping(value="/app/record")
public class AppRecordController extends BaseController {

	
    @Autowired
    private AppRecordService recordService;
    
    /**
     * @param token
     * @return
     */
    @RequestMapping(value = "/addRecord")
    @ResponseBody
    public ResResult addRecord(TokenData data){
    	return recordService.getTypeList(data);
    }
    
    /**
     * @param token
     * @return
     */
    @RequestMapping(value = "/getRecordList")
    @ResponseBody
    public ResResult getQuestionInfo(TokenData data,String CategoryId,Page page){
    	return recordService.getQuestionInfo(data,CategoryId,page);
    }

}